﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MyLibrary.ThreeLayer.Entity
{
    [AttributeUsage(AttributeTargets.Property)]
    public class BooleanFieldAttribute : ValidateAttribute, IValidateAttribute<Boolean>
    {
        bool _default = true;

        bool IValidateAttribute<bool>.Default
        {
            get { return _default; }
            set { _default = value; }
        }

        public BooleanFieldAttribute()
        {
        }

        bool IValidateAttribute<bool>.IsValidate(bool value)
        {
            throw new NotImplementedException();
        }
    }
}
